
import { connect } from 'react-redux';

function ShowInfo(props) {
  let { editInfo } = props
  return (
    <div>
      <div>所有人员信息展示</div>
      {
        editInfo?.map((item, i) => {
          return <div key={i}>姓名：{item?.name}，性别：{item?.gender}，年龄: {item?.age}</div>
        })
      }
    </div>
  )
}

export default connect(state => ({ editInfo: state.editInfo }))(ShowInfo)